home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Diamond (release).adf / Documentation / Diamond_Manual < prev    next >
Text File  |  1989-01-02  |  79KB  |  1,809 lines

  1.  
  2.             The Diamond Manual
  3.  
  4.             (c) Impulse, Inc. 1987/88
  5.                         Quartex in 1989!
  6.  
  7. Hardware Requirements
  8.  
  9. - Amiga computer with minimum 512K memory (minimum).
  10.   (1MB of RAM memory or more is reccommended)
  11. - Amiga Kickstart and Workbench version 1.2 or greater
  12. - One floppy drive (minimum).
  13. - Hard drive recommended but not necessary.
  14.  
  15. Introduction
  16.  
  17. Welcome to Diamond, a powerful multi-mode paint program with a number of
  18. unique capabilities.  Diamond works in all currently available Amiga graphics
  19. modes including Lo-res, Hi-res, HAM, HAMPlus, and Extra Halfbrite.  It's
  20. currently the only Amiga paint program that reads and writes RGBN files 
  21. (used by Turbo Silver) directly.  You can use nonstandard picture and screen
  22. sizes, and work with any number of bitplanes in Lo-res and Hi-res.
  23.  
  24. What is HAM?
  25.  
  26. Although Diamond can be used in any standard Amiga graphics mode including 
  27. Extra Halfbrite, it is primarily a HAM digitizing and paint program.  In most
  28. cases, the maximum number of bit planes that an Amiga screen can use is five,
  29. limiting the maximum number of simultaneous onscreen colors to 32.  Diamond 
  30. lets you work with 12-bit images such as the RGBN files produced by Turbo 
  31. Silver that on most computers would require an eight-megabyte frame buffer to
  32. display.  It does so by virtue of the special Amiga graphics mode called Hold
  33. And Modify, or HAM for short.
  34.  
  35. In traditional register-mapped computer displays, the value of a pixel in the
  36. screen bitmap determines the hardware register from which the pixel's color 
  37. value is fetched, so that the colors of an entire image are defined in a few
  38. bytes of RAM.  In HAM displays, each pixel is represented by six bits in the
  39. screen bitmap.  Since Hi-res displays are limited to a maximum of four 
  40. bitplanes, HAM displays must be 320 pixels wide maximum.  In HAMPlus mode, if
  41. the first two bits are both zero, the pixel's color value is obtained from 
  42. one of the 16 color registers. However, if either or both of the first two 
  43. bits is set to one, the interpretation process is quite different.  First the
  44. pixel's value is copied over from the one immediately to its left.  Then one
  45. of the pixel's three color components--red, green, or blue--is set to the 
  46. value of the pixel's lower four bits, a number between 0 and 15.  If the 
  47. first two bits are 01, the blue component is modified.  If they're set to 10,
  48. the red bits of the pixel to the left are replaced.  And if they're set to
  49. 11, the green component is altered.
  50.  
  51. Thus the term Hold and Modify.  Your color selection is extended from the 
  52. normal 32 colors by allowing you to copy (Hold) two of the three color values
  53. used by the preceding pixel and to change (Modify) the other value to the new
  54. value specified by the lower four bits of the pen number.
  55.  
  56. There are a few limitations to the HAM mode that you should be aware of.  
  57. When you're only using HAM colors on the screen, since you can change only 
  58. one color component per pixel, it make take as many as three pixels to change
  59. completely from one color to another, which can sometimes causes an 
  60. undesirable fringing effect.  However, use of the HAMPlus mode with careful
  61. palette selection can overcome this to a great extent.  Also, since each
  62. pixel's value is usually determined by its neighbor to the left, changing a
  63. pixel can alter all pixels to its right on the scan line.
  64.  
  65.  
  66. What is Extra Halfbrite?
  67.  
  68. Extra Halfbrite is another special graphics mode available with Diamond for
  69. digitizing and painting that gives you 64 colors to work with.  EHB is an 
  70. extension of the Lo-res mode, and can only be used with Amiga 500's and 
  71. 2000's and later models.  Some late-model 1000's are also equipped for this
  72. mode.  If you own an earlier 1000 consult your retailer for an upgrade.
  73.  
  74. The first half of EHB's 64-color palette is determined the same way Lo-res's
  75. 32-color palette.  That is, you're free to choose any and all from the 
  76. Amiga's 4096-color palette.  The second set of 32 colors is created 
  77. automatically by the Amiga, based on your selection of the first 32, each one
  78. at half the brightness of its counterpart in the first set.  If you change a
  79. palette color, its counterpart also changes.  You can use the extra 32 colors
  80. anywhere on the screen, but you can't set them independently.
  81.  
  82.  
  83. Making Backups
  84.  
  85. As Diamond is written to be compatible with the Amiga's multitasking 
  86. operating system, it is not copy-protected.  Use your standard disk copy 
  87. procedure to back up the program disk (see your owner's manual for details),
  88. and store the original away in a safe place.  Use the copy as your working 
  89. disk.
  90.  
  91.  
  92. Using the Program
  93.  
  94. This manual assumes that you're familiar with standard usage of the Amiga's
  95. Intuition interface--use of the mouse, windows, and menus.  If not, please 
  96. read the owner's manual that came with your computer.
  97.  
  98. As a brief review, whenever the manual indicates that you're to select 
  99. something from the screen, position the mouse pointer over the object and 
  100. click the left mouse button.  However, to select a menu item, press and hold
  101. the right mouse button down, and release it when the desired item is 
  102. highlighted with the mouse pointer.
  103.  
  104. Using the File Requester
  105.  
  106. Whenever you use the Load, Save, batch processing or Merge commands Diamond
  107. presents you with a File requester.
  108.  
  109. The topmost gadget in the requester, labelled 'Drawer:', contains a single 
  110. line of text indicating the current path.  The upper portion of the file 
  111. requester below the path name gadget contains a list of all current volumes
  112. at top, followed by a list of directories and files in the current path.  
  113. To scroll through the list, use the slider at left.  To select a new volume,
  114. click on the volume name in the list, then on the 'List Files' gadget at the
  115. bottom of the requester.  To list the contents of a directory, click on the 
  116. directory name in the list window, then on the 'List Files' gadget.  You can
  117. also return to the previous directory by clicking on the line:
  118.  
  119.     ..   (parent dir)
  120.  
  121. Immediately below the list of volumes, then on 'List Files'.  Changes made in
  122. the current search path by any of the above methods are reflected in the 
  123. 'Drawer:' gadget.  You can also select a new path by editing the contents of
  124. the 'Drawer:' gadget.  
  125.  
  126. If you've set a new directory (before clicking on 'List Files'), but change
  127. your mind and want to stay in the current directory, simply 
  128. click on the line:
  129.  
  130.     .    (current dir)
  131.  
  132. to return the 'Drawer:' gadget to its previous contents.  Also, if you've 
  133. added files to the current directory and wish to update the contents of the 
  134. file list window, which isn't done automatically, click on '.   (current dir)'
  135. if you've altered the 'Drawer:' line, then on 'List Files'.
  136.  
  137. To select an existing file, click on the file name, then on the lower left 
  138. hand gadget, labeled 'Load', 'Save', or 'Use' depending on the context.  To
  139. indicate a new file name for saving, edit the 'File:' gadget below the list
  140. window.
  141.  
  142. To exit the file requester without performing the indicated action, click on
  143. the 'Cancel' gadget.
  144.  
  145.  
  146.  
  147. Reference Section
  148. =================
  149.  
  150.  
  151. Starting Diamond
  152.  
  153. When you first run the Diamond program, the Diamond Controls 
  154. requester appears:
  155.  
  156. From here you set the working conditions for your Diamond session.  Default 
  157. conditions are set as shown above--the graphics mode is HAMPlus, 
  158. Bitplanes/Colors is set to 12/4096 and the screen and picture sizes are set 
  159. to 320 by 200, which is also the case for HAM.  You can select HAMPlus by 
  160. clicking on the HAMPlus gadget or on the 12/4096 gadget to the extreme right
  161. of Bitplanes/Colors.  The difference between the two is that HAMPlus uses a 
  162. register-mapped 16-color palette which can be used anywhere on the screen to
  163. minimize HAM artifacts.
  164.  
  165. If you select Hi-res, the Bitplanes/Colors gadget is set to the maximum 
  166. option, 4/16, and the Screen and Picture sizes are set to 640 by 200.  If 
  167. you select Halfbrite, the Bitplanes/Colors gadget is set to 6/64 
  168. (and vice-versa), and Screen/Picture is set to 320 by 200.  You can select 
  169. Lo-res, the fifth graphics mode, by clicking on any selected button gadget 
  170. (except Interlace or Overscan).  The graphics mode is set to low resolution,
  171. 320 by 200 with 32 colors--as shown by the automatic selection of 5 
  172. bitplanes and 32 colors in the requester.  You can also select Lo-res by 
  173. clicking on the any of gadgets 1 through 5 to the right of 'Bitplanes:' in 
  174. the requester if Hi-res isn't selected.
  175.  
  176. The Interlace gadget affects the vertical resolution, doubling it to 400 
  177. pixels on the screen when selected.  Overscan extends the picture area to 
  178. beyond the edges of the monitor screen for video production applications.  
  179.  
  180. The Overscan gadget increases horizontal resolution to 352 (704 with Hi-res)
  181. and vertical resolution to 220 (440 with Interlace), expanding the picture 
  182. size to the screen limits.  With Lo-res or Hi-res you can select less than 
  183. the maximum number of Bitplanes/Colors by clicking on the appropriate gadget
  184. to the right of 'Bitplanes:'.  If you don't need all the colors, using fewer
  185. bitplanes saves memory.
  186.  
  187. If you have more than one megabyte of memory and aren't using it for other 
  188. programs, you can set a larger picture size by clicking on the Custom gadget
  189. to the extreme right of 'Picture:' so it becomes selected, then clicking on
  190. the horizontal and vertical resolution gadgets and editing them with the 
  191. keyboard to the desired size.  Also, if you're using a special Intution-
  192. compatible high-resolution display you can set Diamond to the greater screen
  193. size by similarly editing the 'Screen:' gadgets.
  194.  
  195. The 'Dispose RAM' gadget is ghosted and inaccessible when you first start 
  196. the program, as is the 'Cancel' button gadget.  These are discussed in the 
  197. description of the Project menu's Reset command, below.
  198.  
  199. If you're short on RAM and want to be able to use the 40K or so normally 
  200. used by the Workbench, click on the 'Close Workbench' button gadget.  
  201. The Workbench won't be accessible while using Diamond, but will reappear 
  202. upon closing the program.  If you don't close the Workbench, it will be 
  203. accessible by using Diamond's front/back gadgets in the upper right corner
  204. of the screen.
  205.  
  206. Finally, click on the 'Paint!' button gadget at the bottom of the requester
  207. to start working, or on the Exit! button to simply quit the program.
  208.  
  209. If, when you click on the 'Paint!' gadget, the screen flashes and you're 
  210. returned to the Diamond Options requester, you don't have enough memory for
  211. the requested mode.  Possible solutions to this are to select 
  212. 'Close Workbench', and quitting any other programs in memory.  If these 
  213. don't work, you'll probably need to add memory to your computer to be able 
  214. to use the desired mode.
  215.  
  216. When the program starts, a blank screen appears with the word Diamond in the
  217. upper left corner.  We recommend you invoke the Gadgets toolbox by selecting
  218. Gadgets from the Screen menu or by pressing Right Amiga-O.  For explanation 
  219. of the various tools.
  220.  
  221.  
  222. Project Menu
  223. ============
  224.  
  225.  
  226. New
  227.  
  228. This has the same effect as the Clear command on the gadgets toolbox, 
  229. clearing the screen completely without requesting a confirmation from you.
  230. To restore the screen after a New command, use the Undo command.
  231.  
  232.  
  233. Open
  234.  
  235. This lets you retrieve a previously saved image in IFF, RGBN, or RGB4 format.
  236. If the file is in one of these three formats, the program automatically loads
  237. the image in the correct format.  For an explanation of the File requester 
  238. used in selecting a file to load, see Using the File Requester above.
  239.  
  240. You can load any picture format (e.g. interlace, Lo-res, etc.) no matter 
  241. which mode you're in.  If the picture you're loading doesn't conform to the
  242. current format, a 'Format Mismatch' requester appears presenting you with 
  243. the choice 'Reset' or 'Convert'.
  244.  
  245. If you select 'Reset' the Diamond Controls requester re-appears.  At this 
  246. point its settings reflect the format of the picture you're trying to load,
  247. so this is a good way of deterimining formats of unknown pictures.  The 
  248. button gadget in the lower left corner is labeled 'Resume' instead of 
  249. 'Paint!'--click on it to reset Diamond to the picture's format and load the
  250. picture, or on 'Cancel' to return to Diamond without changing format.
  251.  
  252. If, however, you click on the 'Format Mismatch' requester's 'Convert' gadget,
  253. Diamond converts the picture file to the current graphics format, including 
  254. picture size and graphics mode.  This process is affected by the Options 
  255. settings Scaling and Dither--see below for further information.
  256.  
  257.  
  258. Merge
  259.  
  260. This command lets you combine two or more images by loading them 
  261. successively onto the screen.  It works exactly the same as the Open command
  262. above.
  263.  
  264. Merge only works in HAM mode--the menu choice is ghosted and unavailable in
  265. any other graphics mode.
  266.  
  267. The current drawing color affects the merge process.  To retain the two 
  268. images' original colors as closely as possible, make sure the current brush
  269. color is on the grey scale; that is, it should contain equal quantities of 
  270. red, green, and blue.  The grey value determines the 'mix ratio' of the two
  271. pictures.  If the brush color is close to white, the merged picture will be
  272. more apparent than the original picture.  But if the brush color is close to
  273. black, the original picture will be more visible.  For an even mix between 
  274. the two pictures, use an intermediate brush value of (7,7,7) or (8,8,8).
  275. Also, experiment with other brush colors when merging for unusual and 
  276. interesting color conversions with the two merged images.
  277.  
  278. Note: Normally when you merge a second picture with the one on screen, 
  279. Diamond replaces the first picture's palette with the second's.  To load 
  280. only the image, and retain the original picture's palette, select Freeze 
  281. from the Screen menu's Palette submenu.
  282.  
  283.  
  284. Save As
  285.  
  286. Use the Save As command to store the current image on disk in any of three 
  287. different formats.  Select from the Save As submenu:
  288.  
  289. RGB4 - Saves file in unique 12-bit Diamond HAM format.  This format isn't 
  290. available in non-HAM graphics modes.  See the Appendix for an explanation of
  291. RGB4. 
  292.  
  293. RGBN - Saves file in a Turbo Silver-compatible 12-bit format.
  294.  
  295. IFF (ILBM) - Saves file in a standard format compatible with most other Amiga
  296. graphics programs.
  297.  
  298.  
  299. Batch
  300.  
  301. Diamond's batch file commands let you automatically process a series of 
  302. picture files in various ways.  For example, you can combine an image with 
  303. the background or foreground of a ray-traced animation sequence, or merge
  304. them.  The Batch commands only work with RGBN images, such as those produced
  305. by Turbo Silver.  An example application would be to add clouds or some other
  306. constant image to the background of all frames of a Silver animation.  You 
  307. must provide a source directory and list of files as well as a destionation
  308. directory, which must already exist-- Diamond can't create directories.  
  309. Batch processing is always visible on the screen as it occurs, so you can 
  310. monitor the process.
  311.  
  312. The Palette Freeze command (see Screen Menu below) affects batch processing 
  313. if turned on.  This means that merged images will use the palette already in
  314. memory, not their own.
  315.  
  316. Source
  317.  
  318. This lets you select a list of files for batch processing.  All files must 
  319. be in the same directory.  Use the methods outlined above in the section 
  320. Using the File Requester to list the files in the directory, then click on 
  321. each file to convert.  As you click on filenames, they're highlighted in 
  322. purple.  When you've slected all the files to process, click on the 'Use' 
  323. button gadget.
  324.  
  325. Destination
  326.  
  327. This lets you select the destination directory for processed files.  Simply
  328. select a directory using standard file requester techniques.  The directory
  329. must already exist--consult your Amiga owner's manual for methods of creating
  330. directories.  Since Diamond is a multitasking program, you can always return
  331. temporarily to the Workbench or CLI/Shell to create a new directory without 
  332. quitting the program.  You needn't select or enter any files--processed files
  333. are named the same as the originals.  Naturally, you shouldn't select the
  334. same directory as the Source (above), or the original files will be erased.
  335.  
  336. Set TC
  337.  
  338. When using batch processing to add a background or foreground to a series of
  339. images, you must select a transparent color.  In the case of a background, 
  340. this is the color in the series of images through which the background image
  341. will appear.  And when adding a foreground, this is the color in the 
  342. foreground image that the sequence images will 'show through'.
  343.  
  344. First load an image from the series, or the foreground image in the latter 
  345. case.  Use the color palette to select the transparent color, then select 
  346. 'Set TC' from the Batch submenu to set the transparent color.  In many cases,
  347. this is the upper left palette color, or color 0.
  348.  
  349. Bkgd
  350.  
  351. When adding a background to a series of pictures, after setting the Source,
  352. Destination, and transparent color (above), first load the background image,
  353. then select this Batch submenu setting to tell Diamond's batch processor to 
  354. use this background. Finally, select 'Do it' from the Batch submenu to start
  355. the processing.  You'll see each image from the series as the background is
  356. added 'behind' the image.
  357.  
  358. Examples of appropriate backgrounds are clouds or clouds and sky for an 
  359. aerial animation, or stars for a trip into outer space.
  360.  
  361. Fgnd
  362.  
  363. When adding a foreground to a series of pictures, after setting the Source,
  364. Destination, first load the foreground image, then set the transparent color.
  365. Next select this Batch submenu setting to tell Diamond's batch processor to
  366. use this image as the foreground.  Finally, select 'Do it' from the Batch 
  367. submenu to start the processing.  You'll see each image from the series as 
  368. the background is added.
  369.  
  370. Examples of appropriate foregrounds are textual titles, or plants for an 
  371. outdoor scene.
  372.  
  373. Smooth
  374.  
  375. This option lets you smooth images as they're processed by any (or none) of
  376. the above batch commands.  After setting the Source and Destination, select
  377. any other appropriate batch options, then select this Batch submenu setting
  378. to tell Diamond's batch processor to smooth the final images.  See Smooth 
  379. under Brush, below, for further information on smoothing.
  380.  
  381. Blend
  382.  
  383. This option lets you blend images as they're processed by any (or none) of 
  384. the above batch commands.  After setting the Source and Destination, select
  385. any other appropriate batch options, then select this Batch submenu setting
  386. to tell Diamond's batch processor to blend the final images.  See Blend 
  387. under Brush, below, for further information on blending.
  388.  
  389. Do it
  390.  
  391. After setting the Source, Destination, and the desired batch process or 
  392. processes as described above, select Do it to initiate the batch processing.
  393. You'll see each selected image as it's processed.
  394.  
  395.  
  396. Print
  397.  
  398. This command lets you print the current image using Preferences settings.
  399. See your owner's manual for information about using Preferences.  Select from
  400. the Print submenu:
  401.  
  402. Screen
  403. Full Image
  404.  
  405. Printing the Screen prints the image currently on screen, without the Gadgets
  406. toolbox or title bar, while Full Image prints the entire image in memory.
  407.  
  408. To print color separations from your image, print three copies; one with 
  409. 'Red' selected from the Display menu, one with 'Green' selected, and one 
  410. with 'Blue' selected.
  411.  
  412.  
  413. Digitize
  414.  
  415. Before digitizing with Diamond, you should calibrate the red, green, and 
  416. blue settings to optimize color contrast and the linearity to optimize 
  417. aspect ratio (ratio of vertical to horizontal pixels) for your particular
  418. camera and lighting setup. See Calibrate and Linearity below for calibration
  419. information.
  420.  
  421. Choose from the Digitize submenu:
  422.  
  423. Red
  424. Green
  425. Blue
  426. B/W (black and white)
  427.  
  428. Use any of the above to actually digitize an image.  If digitizing in color,
  429. make sure the appropriate color filter is over the camera lens.  If the 
  430. Calibrate item is checked, meaning Calibrate is turned on, selecting one of
  431. the above performs the indicated calibration, but the image is not digitized.
  432.  
  433. Linearity
  434.  
  435. Linearity determines the digitized image's aspect ratio, or ratio of height 
  436. to width.  To calibrate linearity, set up the Diamond in Lo-res Interlace 
  437. with 4 bitplanes/16 colors.  Set up the palette so that the first eight 
  438. colors are black and the last eight are white.  Position the target image as
  439. above and turn on Calibrate.  Then select B/W from the Digitize submenu.
  440. This does the initial calibration.  Next turn off Calibrate and select B/W
  441. again.  Adjust the light so that the white portion of the image contains no
  442. off-color pixels near the edges, redigitizing as necessary.  Next turn 
  443. Calibrate back on and select Linearity from the Digitize submenu.  Turn 
  444. Calibrate off, and select B/W to digitize the test image.  This should 
  445. result in a perfectly round black circle. 
  446.  
  447. Calibrate
  448.  
  449. This is a setting.  When selected a checkmark appears next to the Calibrate
  450. submenu item, which means Calibrate is turned on.  If calibrate is turned on
  451. when you select one of the digitizing commands (Red, Green, Blue, or B/W),
  452. calibration is performed but no image is produced.  To turn off Calibrate,
  453. select it again from the submenu.
  454.  
  455. To calibrate color contrast, first position the target image that comes with
  456. your Impulse, Inc. digitizer so that the white area surrounding the black
  457. circle fills the screen to the edges. Then select Calibrate from the 
  458. Digitize submenu.  Position the red filter under the camera lens, then 
  459. select Red from the Digitize submenu.  Do the same thing with the green and
  460. blue filters and settings.
  461.  
  462. Auto Cal.
  463.  
  464. This performs an automatic calibration (see Calibrate above), then digitizes
  465. the image using the current color setting (red,green, blue, or black and
  466. white).
  467.  
  468. Load Cal.
  469.  
  470. To load Calibrate settings you must previously have saved the settings with
  471. the Save Cal. command below.  The program attempts to load a file named 
  472. '.digical' from the SYS:S directory.  If it can't find the calibration file,
  473. Diamond prints the message 'Object Not Found' at the top of the screen.
  474.  
  475. Save Cal.
  476.  
  477. If you always use the same digitizing setup you can save time by saving 
  478. calibration settings after they're generated, as described above.  When you
  479. use this command the settings are automatically saved in the SYS:S directory
  480. as a file named '.digical'.  In subsequent digitizing sessions reload the 
  481. settings with the Load Cal. command above.
  482.  
  483. Options
  484.  
  485. The Options submenu contains a number of settings which you can turn on and 
  486. off as desired by selecting the desired item.  When an Options setting is 
  487. turned on or in effect, a check mark appears next to it on the submenu.  
  488. If it isn't in effect, no check mark appears.  Options are as follows:
  489.  
  490. Scaling
  491.  
  492. With Scaling in effect, Diamond always tries to maintain a newly loaded 
  493. image's or brush's picture content despite any format mismatches.  Consider
  494. an example in which you're in non-interlace mode and you attempt to load an
  495. interlace image, and you select 'Convert' from the 'Image Mismatch' 
  496. requester.  If Scaling isn't in effect, Diamond simply loads the top half of
  497. the image and discards the bottom half.  However, if Scaling is turned on,
  498. Diamond performs pixel averaging on each pair of scan lines in the original
  499. image with the result that the final loaded image looks as close to the 
  500. original as possible within the contraints of the lower resolution.  
  501. Conversely, if you load a non-interlace picture in interlace mode without
  502. Scaling in effect, the picture loads into the top half of the screen.  But
  503. with Scaling turned on, Diamond doubles each scan line in the loaded image 
  504. so that it fills the screen in its original proportions.
  505.  
  506. Scaling is also useful when loading brushes in a different graphics format.
  507. For example, loading a Hi-res format brush while in HAM mode with Scaling 
  508. turned on maintains the brush's original appearance as closely as possible.
  509.  
  510. Dither
  511.  
  512. Dither applies to images being digitized or converted while being loaded from
  513. disk.  Dithering is the simulation of additional screeen colors by placing 
  514. different-colored pixels next to each other.  Dithering is also useful in 3D
  515. shaded images for smoothing out the transitions between successively lighter
  516. (or darker) bands of color on objects' surfaces.
  517.  
  518. By using the Dither setting to convert an image from HAM to 32-color Lo-res
  519. (for example), you can maintain a reasonable similarity to the original image
  520. that may have used hundreds or thousands of colors.  Here's how:
  521.  
  522. - Load the HAM image, preferably from an RGBN or RGB4 format file.
  523.  
  524. - Use the mouse to select the CreateN command from the Palette submenu on 
  525.   the Screen menu.
  526.  
  527. - Save the image as an RGBN file.
  528.  
  529. - Reset Diamond to Lo-res 32-color mode.
  530.  
  531. - Make sure Dither is selected.
  532.  
  533. - Load the picture.  When the 'Format Mismatch' requester appears, select 
  534.   the 'Convert' button gadget.
  535.  
  536. - Now use 'Save As ILBM (IFF)' to save the picture as a file compatible with
  537.   any Amiga program that requires Lo-res 5-bitplane images.
  538.  
  539. Load In Place
  540.  
  541. This lets you merge a brush onto the screen in the same place from which it
  542. was originally copied.  If Save In Place was in effect when the brush was 
  543. saved and Load In Place is in effect when using Merge from the Brush menu 
  544. (see below), the brush is merged onto the screen in the identical location
  545. from which it was originally taken.  If Load In Place isn't in effect, the
  546. merged brush appears at the current pictures upper left corner.
  547.  
  548. Save In Place
  549.  
  550. If this is active when you save a brush, positional information is also 
  551. saved so that you can subsequently merge the brush with any picture in the
  552. exact position from which it was originally copied or grabbed.  For this to
  553. happen Load In Place must be active when you use the Merge Brush command.  
  554. See the Brush menu for further information.
  555.  
  556. Preserve IFF
  557.  
  558. This preserves non-image information when loading IFF images from other 
  559. sources.  For example, some programs save color cycling information along 
  560. with Lo-res and Hi-res image files.  To ensure that IFF picture files you 
  561. manipulate with Diamond don't lose such information, turn on Preserve IFF 
  562. before loading the image and don't turn it off before saving the picture.
  563.  
  564. Write Icons
  565.  
  566. This, the only Options setting not turned on automatically when you start 
  567. Diamond, causes icons to be created when you save image files with Diamond.
  568. Normally this isn't done in order to save disk space.
  569.  
  570. Reset
  571.  
  572. This command erases any current image and returns you to the Diamond 
  573. Controls requester described at the beginning of this reference section.
  574. The main differences are that the 'Dispose RAM' and 'Cancel' gadgets are 
  575. now selectable.
  576.  
  577. The 'Dispose RAM' gadget frees fragmented memory.  If you attempt to reset
  578. Diamond to a mode or picture size for which you should have enough memory,
  579. and the screen flashes, you may still be able to use that mode by first 
  580. selecting 'Dispose RAM'.  This may recover sufficient memory to allow you 
  581. to use the new settings. For example, it may not be possible to use HAMPlus
  582. along with Interlace and Overscan in a one-megabyte Amiga, depending on how
  583. many disk drives are connected.
  584.  
  585. The 'Cancel' gadget simply aborts the Reset command and returns you to the 
  586. Diamond paint screen in the previous mode.
  587.  
  588. Quit
  589.  
  590. Closes the current window and quits the program.
  591.  
  592.  
  593.  
  594. Region Menu
  595.  
  596. This menu contains Diamond's most powerful commands for creating brushes 
  597. from parts of the picture.  Diamond is unique in that you can select 
  598. different noncontiguous areas of your image simultaneously as a brush for 
  599. placing on other parts of the picture, on onto another picture.
  600.  
  601. About Regions--Basic Usage
  602.  
  603. The Region menu offers a number of fairly complex inter-relating commands.
  604. Therefore we recommend that, in order to understand what you're doing, you
  605. read everything in this section before attempting to use any of the commands.
  606.  
  607. Creating a Single-Image Brush
  608.  
  609. Here's the procedure for creating a brush from one part of your picture:
  610.  
  611. - First select 'Lock' from the Region menu.  This allows you to recover the
  612.   original picture in case of any mistakes or accidents.
  613.  
  614. - Use one of the drawing tools, such as circle, rectangle, or freehand draw,
  615.   to define the area you want to copy, making sure the area is totally 
  616.   enclosed.  Since you want to see as much of the picture as possible, don't
  617.   fill the areas--use the outline version for the shape tools.  You're 
  618.   actually painting over the area you want to copy, but don't worry--unlike
  619.   other paint programs, Diamond remembers what's underneath, as you'll soon
  620.   see.
  621.  
  622. - Press function key F1.  This lets you combine the Add Fill and Copy 
  623.   commands (see below for explanation).  The cusor becomes a cross-hair with
  624.   the word 'FILL' connected.
  625.  
  626. - Click within the enclosed area to pick it up as a brush, or outside the 
  627.   area to pick up the rest of the picture as a (large) brush.
  628.  
  629. - You can now place this brush repeatedly anywhere on the picture.  However,
  630.   you can't 'paint' with it as you can with a solid-color brush.
  631.  
  632. - To pick up a different brush, first press the space bar, then select New
  633.   from the Control submenu, then repeat the above procedure.
  634.  
  635.  
  636. Creating a Multi-Image Brush
  637.  
  638. Diamond also lets you copy several different noncontiguous areas from the
  639. picture simultaneously--in fact, as many as you like.  Here's how:
  640.  
  641. - First lock and define your areas as described above.  Be sure to use the
  642.   New command if Lock is already on.
  643.  
  644. - Now to fill in all the areas you've enclosed in preparation for picking 
  645.   them all up together with the Copy command.  Select Add Fill from the 
  646.   Modify submenu, then click in each area you want to include in your 
  647.   'multi-area' brush.  Each area becomes inverted (black becomes white, etc.)
  648.   as you click in it.
  649.  
  650. - When all areas are filled, select Fill Off from the Modify submenu.
  651.  
  652. - If you decide that too many regions are selected, follow this procedure 
  653.   before proceeding to the Copy command.  Select Not Region from the Modify
  654.   submenu, whereupon the entire screen is inverted.  Next select Add Fill 
  655.   and click in the areas you don't want to copy, then select Fill Off from
  656.   the Modify submenu.  Finally select Not Region again to return the screen
  657.   to its normal appearance.
  658.  
  659. - Next select Copy from the Region menu or press Right Amiga-C to copy all 
  660.   the filled areas.
  661.  
  662.  
  663. IMPORTANT NOTE!
  664. ==============
  665.  
  666. Remember that when Lock is on, Diamond remembers everything!  Once you've 
  667. finished a Copy or Grab operation, be sure to select the New command from 
  668. the Control submenu to tell the program that you've finished with one region
  669. and are ready to proceed to another.
  670.  
  671. NOTES FOR ADVANCED USERS! - Diamond and Memory
  672. =============================================
  673.  
  674. The key to understanding the use of Region menu commands is awareness of 
  675. how Diamond uses memory.  When working in HAM noninterlace mode, Diamond 
  676. requires a minimum of 397 kilobytes of memory, divided thusly:
  677.  
  678.     96K - Picture        (12 bitplanes)
  679.     96K - Undo Buffer    (12 bitplanes)
  680.     48K - Screen        (6 bitplanes - HAM)
  681.     56K - Miscellaneous    (7 bitplanes)
  682.     97K - Program code
  683.      4K - Stack
  684.     397K total
  685.  
  686. The above total doesn't include memory required for Intuition messages, 
  687. fonts, menu/screen swap area, and I/O.
  688.  
  689. Each processed Diamond picture occupies 96K in a proprietary format, computed
  690. according to this formula:
  691.  
  692.     3 colors X 4 planes/color X 8K/plane
  693.  
  694. The 96K pictures can hold more color information than the Amiga HAM screen is
  695. capable of displaying.  Diamond shows its best approximation of the 96K 
  696. picture on the HAM screen.  Display menu options let you see the red, green,
  697. and blue components of the image separately with no loss in quality.
  698.  
  699. When you paint on the screen, changes are registered immediately in the 96K
  700. image in memory, then the program calculates and displays changes for the 
  701. HAM display version.  In large part, any slowness you may notice in using 
  702. Diamond results from this recalculation of the HAM screen, which can take as
  703. long as four seconds in extreme cases.  The only other slow aspect of the
  704. program you may notice is in compressing and expanding files during disk I/O.
  705.  
  706. Use of the internal 96K picture buffer means you can make numerous changes to
  707. the displayed image without losing the original image.
  708.  
  709. You should also be aware of the undo and region masks.  The undo mask holds 
  710. the shape of the area that can be undone (usually the area covered by the 
  711. last brush stroke, but can be different e.g. after opening a new picture or
  712. after clearing the screen).  The region mask holds the shape of the area that
  713. can be affected by the various Region menu commands such as Copy, Grab, 
  714. Flood, Restore, etc.
  715.  
  716. In the simplest cases, the region mask is the same as the undo mask, but you
  717. can 'Lock' the region so that it can accumulate several brush strokes.  
  718. Diamond will not let you paint over a locked region on the screen, even when
  719. clearing the screen or loading a new picture.  When the region mask is set 
  720. (i.e. 'Lock' is turned on), the undo buffer always contains what was on the
  721. screen before it became part of the region.  Thus with proper use the Region
  722. commands can act as a 'super-Undo' system.  The Region menu commands Restore,
  723. Swap, and Keep let you copy data between the screen and the undo buffer.
  724.  
  725.  
  726. Working With Regions
  727.  
  728. When using Region menu commands you should keep in mind that there are really
  729. two 'pictures'; the one on the screen, and the one in the undo buffer.  When
  730. you use the Region menu's Copy or Restore commands the undo buffer's image is
  731. copied to the screen. However, the screen image is the one affected by 
  732. 'Flood Region' and the one that is copied to the undo buffer with 
  733. 'Keep Region'. 'Swap Region' exchanges the two screens.  When a region is 
  734. set, you can move it around on the screen by holding down either Alt key and 
  735. pressing the arrow keys.
  736.  
  737. With one exception, whatever you paint over on the screen becomes part of the
  738. current region.  If 'Lock' isn't on, each new stroke replaces the previous 
  739. buffer contents.  With 'Lock' on, however, each new stroke is added to the 
  740. region.
  741.  
  742. The exception is when you use the 'Eraser' setting from the Brush menu.  The
  743. eraser erases region information only.  Wherever you paint over the current 
  744. region with the eraser is restored from the undo buffer, and that part of the
  745. screen is removed from the region.  It isn't necessary to have 'Lock' on 
  746. while erasing part of a region--with 'Eraser' on, the region mask isn't 
  747. cleared at each new brush stroke.
  748.  
  749. The Region menu offers the following commands and submenus:
  750.  
  751.  
  752. Control Submenu
  753.  
  754.  
  755. New (Right Amiga-N)
  756.  
  757. When painting with 'Lock' on (see below),  invoking the New command clears 
  758. the region mask so that you can select an entirely new region.  Note that 
  759. this command does not restore the region from the undo buffer before clearing
  760. the region mask.
  761.  
  762. Restore (Right Amiga-R)
  763.  
  764. If 'Lock' isn't activated, this has the same result as Undo, restoring the 
  765. picture to its condition before the last brush stroke.  However, invoking 
  766. Restore with 'Lock' on restores the picture to its state at the point 'Lock'
  767. was turned on, or since the last 'New', 'Keep', or 'Swap'.
  768.  
  769. Keep (Right Amiga-N)
  770.  
  771. Use this to copy all parts of the current region from the screen picture to
  772. the undo buffer.  You can then make further changes, using Restore to return
  773. to this point.  Normally when you paint on the screen, what you paint over 
  774. gets added to the region.  To add your actual strokes to the region,
  775. use Keep.
  776.  
  777.  
  778. Swap (Right Amiga-S)
  779.  
  780. Exchanges the information in the current region on the screen with that in 
  781. the undo buffer.
  782.  
  783.  
  784. Flood (Right Amiga-F)
  785.  
  786. Covers the entire current region on screen with the current drawing color.
  787. See 'Add Color' below for information on using Flood to change one color 
  788. globally to another throughout the picture.
  789.  
  790.  
  791.  
  792. Modify Submenu
  793.  
  794.  
  795. Add Color
  796.  
  797. Use this command in conjunction with Flood above to change one color globally
  798. to another throughout the picture.  Here's an example:
  799.  
  800. - This technique is most effective with digitized or ray-traced images.
  801.   If you have such an image, load it now.
  802.  
  803. - Select the color to change directly from the image with the Pick Color 
  804.   command (see Brush Menu below).
  805.  
  806. - Choose Add Color from the Region Modify submenu.
  807.  
  808. - Next choose the new color, either from the screen or from the palette 
  809.   (Set Color).
  810.  
  811. - Finally select Flood from the Region Control submenu (see above).  
  812.   Every pixel in the picture of the first color is changed to the second 
  813.   color.
  814.  
  815.  
  816. Add CRange
  817.  
  818. This command lets you define a color range, rather than a specific area on
  819. the screen as a region.  This is useful with digitized and ray-traced images
  820. which contain irregularly-shaped areas consisting of a range of shades of a
  821. particular color to indicate 3D shading.  With Add CRange you can define all
  822. areas on the screen containing a specific range of shades as a single region:
  823.  
  824. - Select a color at the upper or lower end of the range from the screen with
  825.    the Pick Color command (Brush menu).
  826.  
  827. - Select Add CRange from the Modify submenu.  This inverts all screen pixels
  828.   in the current color and adds them to the region.
  829.  
  830. - Use the numeric keypad at the right end of your keyboard to set the color 
  831.   at the other end of the range.  Here's how it works:
  832.  
  833.         Lower Red    <- 7  8  9 ->  Raise Red
  834.         Lower Green  <- 4  5  6 ->  Raise Green
  835.         Lower Blue   <- 1  2  3 ->  Raise Blue
  836.  
  837. When you adjust the other end of the region to a color present on screen, 
  838. that color and all shades in between are immediately inverted and added to
  839. the region.
  840.  
  841. - Finally press the space bar to finish setting the color range, and select
  842.   Copy or Grab to pick up the region.
  843.  
  844.  
  845. Not Region
  846.  
  847. This command inverts the region--that is, everthing that wasn't part of the
  848. region becomes part, and everything that was part is no longer.  When 
  849. selecting several different sections of an image to use in a single brush,
  850. to deselect one or more areas, use Not Region, then Add Fill on the unwanted
  851. sections, then Not Region again.  See the section 'Creating a Multi-Image
  852. Brush' above for further details.
  853.  
  854.  
  855. Add Fill
  856.  
  857. Use when selecting more than one area to copy or grab as a brush. See the 
  858. section 'Creating a Multi-Image Brush' above for further details.  Includes
  859. the outline with the fill.  Use Fill Off to cancel.
  860.  
  861.  
  862. Fill Only
  863.  
  864. Use when selecting one area to copy or grab--doesn't include the outline
  865. area.  Use Fill Off to cancel.
  866.  
  867. One useful application of Fill Only is to grab a precisely outlined copy of
  868. an image on the screen (such as a ray-traced sphere against a black 
  869. background).  If the image is surrounded by a single-color background, it's
  870. very easy to do:
  871.  
  872. - Use 'New' from the Control submenu to clear the region mask.
  873.  
  874. - Use any color with the Flood Fill tool (see Gadgets in the Screen Menu
  875.   section below) to fill the area around the object to grab.
  876.  
  877. - Next select Fill Only and click anywhere on the object to grab. Note that
  878.   after doing this the object's appearance is inverted and the flood fill 
  879.   from the previous step is gone.
  880.  
  881. - Select Fill Off to cancel Fill Only.
  882.  
  883. - Select Copy or Grab from the Region menu to lift the image from the 
  884.   background.
  885.  
  886.  
  887. Fill Off
  888.  
  889. Use to deactivate the Fill Only or Add Fill commands when defining regions.
  890.  
  891.  
  892. Lock (Right Amiga-L)
  893.  
  894. Fixes the current screen image in memory, allowing you to restore the image
  895. to this state after any number of changes have been made.  Some uses of the
  896. Lock command are:
  897.  
  898. - To add more brush strokes to the current region.
  899.  
  900. - To preserve the region mask contents during a Clear screen or New command
  901.   or when loading a new picture.
  902.  
  903. - To prevent part of the picture from being painted over.
  904.  
  905. NOTE!
  906. =====
  907.  
  908. When you paint with a region locked, none of the new paint is stored in the
  909. undo buffer unless you use the Keep or Swap commands from the Region menu.
  910. When you use the Copy command all painted areas since 'Lock' was turned on
  911. are replaced by the contents of the undo buffer.  Therefore if you make many
  912. changes to an image with 'Lock' on, and decide that you want to keep them,
  913. you should use the Keep command before doing anything else.
  914.  
  915.  
  916. Copy (Right Amiga-C)
  917.  
  918. This places the contents of the undo buffer at the mouse cursor. You can 
  919. reposition the image by moving the mouse cursor and place a single copy on 
  920. the screen in the current position by clicking the left mouse button.  You 
  921. can place the image as many times as you like.  If you select this command 
  922. without first defining a region, the entire screen is selected.
  923.  
  924. A shortcut for grabbing a single-image brush is to outline the area to grab,
  925. then press function key F1 (Add Fill and Copy), then click in the outlined 
  926. area to erase the outline and pick up the area as a brush.
  927.  
  928. To exit the Copy command, press the space bar.
  929.  
  930.  
  931. Grab (Right Amiga-G)
  932.  
  933. This works similarly to the copy command, except that when placing the 
  934. brush, a 'hole' is created in the location from which it was taken, which is
  935. replaced by the area covered by the brush in the new location.  Essentially
  936. it copies the destination area to the source, both of which are exactly the
  937. same shape.
  938.  
  939.  
  940. Flags Submenu
  941.  
  942. These settings making cutting and pasting parts of an image easier.
  943.  
  944. Border
  945.  
  946. When active, eliminates all but the outline of the currently selected region
  947. during a Copy or Grab operation to allow more accurate brush placement 
  948. (can be used with Inverse, below).
  949.  
  950. Inverse
  951.  
  952. Creates a 'negative' image of the currently selected region during a Copy or
  953. Grab operation to allow more accurate brush placement (can be used with 
  954. Border, above).
  955.  
  956. Horiz. Flip
  957.  
  958. Stands for horizontal flip, flips the current brush left to right during a 
  959. Copy or Grab operation.
  960.  
  961. Vert. Flip
  962.  
  963. Stands for vertical flip, flips the current brush top to bottom during a 
  964. Copy or Grab operation.
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972. Brush Menu
  973.  
  974.  
  975. Brush Submenu
  976.  
  977. Brush submenu items determine how a solid-color brush affects areas you paint
  978. over.  Select brush sizes and shapes from the Gadgets toolbox, and colors 
  979. from the color palette (see Set Color below).
  980.  
  981.  
  982. Paint (Right Amiga-P)
  983.  
  984. When Paint is active, areas you paint over are covered with the current brush
  985. color.  If Lock is on all covered areas are added to the current region.  
  986. If you've previously defined a region you won't be able to paint over that 
  987. area.
  988.  
  989.  
  990. Eraser (Right Amiga-E)
  991.  
  992. When eraser is active you can erase part of the paint covering the current 
  993. region.  That is, if Lock isn't on you can erase any or all of the area 
  994. covered by the last brush stroke or other painting action, revealing what 
  995. was underneath.  If Lock is on you can erase any part of paint applied since
  996. you turned on Lock or last invoked the New command from the Control submenu.
  997.  
  998. In addition to removing paint from the screen, the Eraser removes that part 
  999. of the image from the current region in memory.
  1000.  
  1001.  
  1002. Inverter (Right Amiga-I)
  1003.  
  1004. This lets you invert (or 'negativize') colors in the current image by 
  1005. painting over them.  White becomes black, black becomes white, blue becomes 
  1006. yellow, red becomes cyan, and so forth.
  1007.  
  1008.  
  1009. TinterA
  1010.  
  1011. The Tinter Add brush setting adds the current brush color to painted areas of
  1012. the picture. In some cases a second brush stroke can cause a further tinting.
  1013.  
  1014.  
  1015. TinterS
  1016.  
  1017. The Tinter Subtract brush setting subtracts or removes the current brush 
  1018. color from painted areas of the picture.  In some cases a second brush stroke
  1019. can cause a further tinting.
  1020.  
  1021.  
  1022. Blender
  1023.  
  1024. Painting over colored areas of a picture with Blender in effect causes color
  1025. pixels to be mixed together, resulting in more gradual edge transitions.
  1026.  
  1027.  
  1028. Smoother
  1029.  
  1030. This effect, also called Anti-Aliasing, is useful for smoothing jagged edges
  1031. in an image, most commonly found in diagonal lines. Pixels are added to 
  1032. object's edges where you paint in strategic places to create more even 
  1033. looking edges.
  1034.  
  1035.  
  1036. Load
  1037.  
  1038. This lets you load a copied or grabbed region brush saved with the Save As
  1039. command (below).  Use the file requester to select the brush file to load, 
  1040. then click on the 'Load' gadget.  After loading the brush Diamond 
  1041. automatically places you in Copy mode (as if you've just picked up the brush)
  1042. so that you can place the brush in the picture.
  1043.  
  1044.  
  1045. Merge
  1046.  
  1047. This loads a brush saved with the Save As command and merges (combines) the
  1048. brush image with the current picture.  If Save In Place was in effect when 
  1049. the brush was saved, the brush is merged into the picture in the same 
  1050. position from which it was originally taken.  However, if Save In Place was
  1051. turned off when the brush was saved, the brush is loaded into the upper left
  1052. corner of the screen.
  1053.  
  1054.  
  1055. Save As
  1056.  
  1057. This command saves the current region image to disk, whether or not you've 
  1058. used the Copy or Grab command.  Choose from the Save As submenu:
  1059.  
  1060.     RGB4
  1061.     RGBN
  1062.     ILBM (IFF)
  1063.  
  1064. See the Project menu's Save As command for an explanation of the different
  1065. file formats.
  1066.  
  1067.  
  1068. Undo  (Right Amiga-U)
  1069.  
  1070. Use this command to restore the screen to its condition before the last brush
  1071. stroke or object drawn. This is the same as clicking on the 'Undo' gadget in
  1072. the Gadgets toolbox.
  1073.  
  1074.  
  1075. Set Color (Right Amiga-B)
  1076.  
  1077. Selecting this command, which is the same as clicking on the Palette gadget 
  1078. in the Gadgets toolbox, brings up a Palette requester whose appearance 
  1079. varies depending on which graphics mode you're in.  
  1080.  
  1081.  
  1082. The HAM Mode Palette Requester
  1083.  
  1084. You can use this requester to set the current drawing color to any of the 
  1085. Amiga's 4096 colors in a variety of ways as well as to manipulate the 
  1086. palette.  
  1087.  
  1088. When the Palette requester first appears, the current drawing color is shown
  1089. in the gadget labelled 'Use' in the upper right corner.  Also, its RGB 
  1090. (red, green, blue) values are shown above the color squares and its HSV 
  1091. (hue, saturation, value) settings are shown below the color squares.
  1092.  
  1093. You can select a new drawing color by clicking in any of the six sliders.
  1094. The three color sliders above the color squares let you set a new color using
  1095. a specific mix of red, green and blue, while the three sliders below let you
  1096. adjust a color by hue, saturation, and value.  Hue refers to the basic color,
  1097. while saturation refers to the color's deepness--the less saturated the 
  1098. color, the more it approaches white.  And value determines the color's 
  1099. darkness--the lower the value, the closer the color approaches black.  The 
  1100. current color is always indicated in all six sliders by small black bars 
  1101. above and below its position. 
  1102.  
  1103. You can also set a new color by clicking in any of the three color squares 
  1104. between the two sets of sliders.  These color squares represent three cross
  1105. sections of a hypothetical 'color cube' containing all 4096 of the Amiga's 
  1106. colors, taken on the three Cartesian Coordinate axes X, Y, and Z, 
  1107. intersecting at the current color.  The current color's location in each 
  1108. square is indicated by small black bars on the square's edges.
  1109.  
  1110. Whenever you select a color, all of the sliders and squares except the one 
  1111. you're using adjust automatically to display ranges of colors adjacent to 
  1112. the new one on their various scales, and the color is shown in the Use
  1113. gadget.  To use this color for drawing, click on the 'Use' gadget.  To exit
  1114. the Palette requester without changing the drawing color, click on the 'Quit'
  1115. gadget.
  1116.  
  1117. In HAMPlus mode there is a fixed 16-color palette which is displayed in the
  1118. left-hand vertical column of colors under the 'Set Pen' gadget.  The 
  1119. background color, color 0, is found topmost in this column.  You can place
  1120. pixels from any of these colors anywhere on the screen without the 
  1121. undesirable HAM fringing effects.  There's also a second set of 16 colors in
  1122. the right-hand column in which you can store other commonly-used colors.  
  1123. To replace any of these colors, follow this procedure:
  1124.  
  1125. - Click on the 'Set Pen' gadget, which becomes highlighted to indicate that
  1126.   you're changing palette colors, not selecting a drawing color.
  1127.  
  1128. - Select a new palette color from the sliders and/or squares.
  1129.  
  1130. - Select the palette position at which to place the new color.
  1131.  
  1132. - Repeat the last two steps for as many colors as you wish to change.
  1133.  
  1134. - When you're done altering the palette, click on 'Set Pen' to exit this 
  1135.   mode, then on 'Use' to exit the Palette requester and accept the changes.
  1136.  
  1137. - If you're unhappy with the palette changes, click on 'Quit' either before 
  1138.   or after clicking on 'Set Pen' again to exit the Palette requester without
  1139.   accepting any alterations.
  1140.  
  1141. NOTE!
  1142. =====
  1143.  
  1144. You can also accept any changes and exit the Palette requester by clicking on
  1145. the Palette gadget in the Toolbox, if available.
  1146.  
  1147. The Register-Mapped Modes Palette Requester
  1148.  
  1149. Unlike HAM mode, all screen pixels in Lo-res, Hi-res and Halfbrite mode 
  1150. images receive their values from color registers. Each pixel's color value is
  1151. defined by one of 16 or 32 registers, which means that if you change the 
  1152. color in a register, all pixels using that register on screen change as well.
  1153. Thus any palette changes in these modes are reflected immediately on the 
  1154. screen.
  1155.  
  1156. In Lo-res there are 32 palette positions, in Hi-res there are 16, and in 
  1157. Halfbrite there are 64, the second set of 32 being half-intensity versions of
  1158. the first 32.  The colors are arranged in ascending order of register 
  1159. position (starting with 0, the background color) from left to right, then top
  1160. to bottom.  You can use this requester to set the current drawing color to 
  1161. any of the Amiga's 4096 colors as well as to manipulate the palette.
  1162.  
  1163. When the Palette requester first appears, the current drawing color is 
  1164. indicated by a colored box around its position.  To select a new color from 
  1165. the current palette, click on the desired color, then on the 'Use' gadget 
  1166. to the right of the color boxes.
  1167.  
  1168. You can use any of the sliders to set a palette color to a new choice from 
  1169. the Amiga's 4096 colors.  Click on the color to change, then adjust the Red,
  1170. Green, Blue, Hue, Saturation, and Value sliders as desired.
  1171.  
  1172. To copy a color from one palette position to another, click on the color to
  1173. copy, then on the Copy gadget to the right of the color boxes, highlighting
  1174. it.  Then click on the color box or boxes to copy it into, replacing existing
  1175. colors.  The same color is copied into all boxes you click on until you 
  1176. deactivate the Copy function by clicking again on the 'Copy' gadget.  When
  1177. copying colors between the first and second sets of 32 colors in Halfbrite 
  1178. mode, the program makes a 'best fit' approximation.
  1179.  
  1180. Use the 'Swap' gadget to exchange places between two colors. First click on 
  1181. a color to swap, then on the Swap gadget (which becomes highlighted), then 
  1182. on the color to exchange it with. This color becomes selected, and is then 
  1183. exchanged with the next color clicked on.  This process continues until you
  1184. click on 'Use', 'Swap', or 'Cancel'.  When swapping colors between the first
  1185. and second sets of 32 colors in Halfbrite mode, the program makes a 
  1186. 'best fit' approximation.
  1187.  
  1188. To create a spread of evenly ranged colors between any two, first set up the
  1189. two colors in the desired positions using any combination of the above 
  1190. techniques.  We don't recommend spreading colors between the first and 
  1191. second sets of 32 colors in Halfbrite mode.  Remember colors are arranged in
  1192. ascending order of register position (starting with 0, the background color)
  1193. from left to right, then top to bottom.  Then click on the Spread gadget to
  1194. create the range.  You can continue clicking on colors and creating spreads
  1195. as long as the 'Spread' gadget remains highlighted--click on it again to 
  1196. resume normal operation.  
  1197.  
  1198. If undesirable results are obtained from any palette alterations, click on 
  1199. 'Cancel' to abandon the changes.  Otherwise click on 'Use' to retain the new
  1200. palette.
  1201.  
  1202.  
  1203. Pick Color (Right Amiga-,)
  1204.  
  1205. Use this command to select a new brush color from the drawing itself.  The 
  1206. cursor becomes a cross hairs with the word 'PICK' attached.  Whichever color
  1207. is under the cross hairs when you click the mouse becomes the new drawing 
  1208. color.  You can use this command together with Magnify mode to select a pixel
  1209. from a small patch of color.
  1210.  
  1211.  
  1212. Size Brush (Right Amiga-Z)
  1213.  
  1214. This works only with solid brushes (not dotted) from the Toolbox. Click on a
  1215. square or round brush, then use this command to make it smaller or larger.
  1216. After selecting Size Brush, click and hold the left button anywhere on the 
  1217. screen.  The brush appears as a single pixel centered in the cross hairs.
  1218. Drag the mouse in any direction away from this position to increase the 
  1219. brush size, or toward the position to reduce it.  Release the mouse button 
  1220. to accept the new size.  Resizing is done in both vertical and horizontal 
  1221. directions, maintaining the brushes original shape. You can also resize the
  1222. brush by pressing the '+' key (shifted or unshifted '=') or the '-' key.
  1223.  
  1224. Set Font (Right Amiga-T)
  1225.  
  1226. Using Diamond's Text tool (see Gadgets below) you can add text to your 
  1227. drawing in any of the fonts currently available in your system.  Consult 
  1228. your owner's manual for system font information.
  1229.  
  1230. Selecting the Set Font command brings up Diamond's Font requester which is 
  1231. specially designed to be able to accommodate an unlimited list of fonts.
  1232. When first invoked, this shows the current system font and point size with 
  1233. a Zoom factor of 1 and normal style:
  1234.  
  1235. Font Requester
  1236.  
  1237. To select a new font, click on the List Fonts gadget.  Diamond then reads 
  1238. the SYS:Fonts directory and shows the first name in the font list in the 
  1239. black line near the top of the Font requester, with that font's smallest 
  1240. point size below next to 'Size'.  To scroll through the font list forward or
  1241. backward, click on the colored bars below or above the current font name.
  1242. To select a different font size, if available, click on the up or down arrows
  1243. to the left of the Size box.  If a different size of the current font isn't
  1244. available, the next or previous font and size in the list appears.
  1245.  
  1246. You can enlarge any font up to 16 times by selecting a new Zoom factor.  Do 
  1247. this by clicking on the up or down arrow gadgets to the left of the Zoom 
  1248. box in the Font requester.
  1249.  
  1250. You can also set any combination of attributes for Underline, Bold, or 
  1251. Italic for the font by clicking on them.  Check marks appear to the left of
  1252. selected attributes.  Click on 'Normal' to cancel the others.
  1253.  
  1254. After selecting a font and changing the Zoom factor or attributes, if 
  1255. desired, click on the 'OK' gadget to accept any changes, or on the 'Cancel'
  1256. gadget to go on using the previous font settings.
  1257.  
  1258. Note: Only the font directory list remains in memory (after loading), and 
  1259. each different font is loaded into memory as needed.
  1260.  
  1261.  
  1262. Screen Menu
  1263.  
  1264. Drag Bar (Right Amiga-D or F9)
  1265.  
  1266. The drag bar is a horizontal bar crossing the top of the screen.
  1267. It contains the name of the program (Diamond) as well as front/back gadgets
  1268. for the Diamond program screen.  Select this command to toggle it off and on.
  1269. Since Diamond is a fully multitasking program, when the drag bar is active 
  1270. you can pull down the screen and reveal the one behind it by clicking and 
  1271. dragging on the drag bar.  You can only paint on the top of the screen when
  1272. the drag bar is inactive.  A check mark appears to the left of this menu 
  1273. item when the drag bar is active.
  1274.  
  1275.  
  1276. Gadgets (Right Amiga-O or F10)
  1277.  
  1278. Selecting Gadgets causes the Toolbox to appear at the right edge of 
  1279. the screen
  1280.  
  1281.  
  1282. Toolbox
  1283.  
  1284. Following is an explanation of each Toolbox gadget, from top to
  1285. bottom:
  1286.  
  1287. Tools - This gadget is visible only when the drag bar is off. Click on it to
  1288.         turn off the Toolbox.
  1289.  
  1290. Built-In Brushes - Click on any of these brushes to use it for solid-color
  1291.                    drawing.
  1292.  
  1293. Palette - Invokes Diamond's Palette requester, or removes it if present.
  1294.  
  1295. Undo - Returns picture to condition previous to the last drawing action.
  1296.  
  1297. Following are the drawing tools.  Each one remains highlighted and in effect
  1298. from when you click on it until you select another tool.
  1299.  
  1300. Dotted Freehand - Use this tool to draw a dotted freehand line, following the
  1301. mouse however you move it.  The faster you move the mouse, the more widely 
  1302. spread the dots are drawn.
  1303.  
  1304. Continuous Freehand - Draws an unbroken freehand line following the mouse.
  1305.  
  1306. Straight Line - Click and hold the mouse button in the desired starting spot
  1307. for the straight line, then drag the mouse in any direction to preview the 
  1308. line, and finally release the mouse button to draw it.
  1309.  
  1310. Curved Line - Click and hold the mouse button in the desired starting spot 
  1311. for the curved line, then move the mouse to the ending position and release 
  1312. the mouse button.  Then move the mouse in any position to preview the curved
  1313. line, and finally click the mouse button to place it.
  1314.  
  1315. Zigzag Line - Click and release the mouse in the desired starting spot, then
  1316. move the mouse to the end of the first line segment and click once.  
  1317. Continue moving and clicking as desired.  To end the line, double-click the
  1318. mouse.
  1319.  
  1320. Hollow/Filled Rectangle - Click in the top half of the gadget to select 
  1321. hollow or in the bottom half to select filled--the gadget's appearance 
  1322. reflects the choice.  Next click and hold on the screen at one corner of the
  1323. rectangle, drag the mouse until the rectangle is the desired size and 
  1324. position, and release the mouse button to place the rectangle.
  1325.  
  1326. Hollow/Filled Circle - Click in the top half of the gadget to select hollow 
  1327. or in the bottom half to select filled--the gadget's appearance reflects the
  1328. choice.  Next click and hold on the screen at the circle's center and drag 
  1329. the mouse until the circle is the desired size.  Finally release the mouse 
  1330. button to place the circle.
  1331.  
  1332. Hollow/Filled Ellipse - Use this tool to draw oval shapes on the screen at 
  1333. any angle.  Click in the top half of the gadget to select hollow or in the 
  1334. bottom half to select filled--the gadget's appearance reflects the choice.
  1335. Next click and hold on the screen at the ellipse's center, whereupon a pair
  1336. of full-screen cross hairs appears centered at the mouse position.  Drag
  1337. the mouse around this point until the cross hairs reflect the desired 
  1338. rotation for the ellipse, then release the mouse button. Next click and hold
  1339. the mouse button to draw the ellipse, dragging the mouse around on the screen
  1340. until the oval is of the desired size, shape, and orientation, releasing the 
  1341. mouse button at that point.
  1342.  
  1343. Spray Gun - Use this tool to draw a field of randomly positioned brush shapes
  1344. with an effect resembling that of a painters airbrush.  Simply click and drag
  1345. the mouse to paint, moving slowly for a dense pattern or faster for a lighter
  1346. texture.  This effect generally works best with a single-pixel-sized brush.
  1347.  
  1348. Flood Fill - Use to fill a region containing one color with another.  Select
  1349. the fill color, then the Flood Fill tool, then click on the area to fill with
  1350. the new color.  All pixels of the same color connected to the one you click 
  1351. on are changed.
  1352.  
  1353. Magnify - When you select this tool the mouse cursor becomes a cross hairs 
  1354. with the word 'PICK' attached.  Click on the section of the picture to 
  1355. magnify, at which the right side of the screen shows the magnified section 
  1356. while the left side shows the unmagnified surrounding area.  All commands 
  1357. work as normal in magnify mode, and you can paint on either side by simply 
  1358. moving the mouse to the desired position.  You can scroll the magnified area
  1359. around the picture with the arrow keys (double the left and right scrolling 
  1360. speed by holding down the Shift key), and increase or decrease magnification
  1361. with Shift-Up Arrow and Shift-Down Arrow.  Click on Magnify again to return 
  1362. to the normal working mode.
  1363.  
  1364. Text - This tool lets you enter text onto the screen directly from the 
  1365. keyboard in any of the Amiga's wide selection of fonts. See the Set Font 
  1366. command above for information about selecting a different font.  When you 
  1367. select this tool, a rectangle showing the current font size becomes attached
  1368. to the mouse cursor along with the word 'PICK', prompting you to indicate 
  1369. where to add text.  Click on the picture in the desired spot, then enter 
  1370. your text from the keyboard.  To enter text in a new location, move the mouse
  1371. cursor to the desired spot and click twice.  You can change the font and/or 
  1372. size and attributes any time by pressing Right Amiga-T.  The changes take 
  1373. effect at the next letter typed.
  1374.  
  1375. Clear - This bottommost tool clears the screen completely if clicked on.  
  1376. To retrieve an erased picture use the Undo command before using any other 
  1377. commands--otherwise it's gone forever if you didn't save it to disk.
  1378.  
  1379.  
  1380. Palette Submenu
  1381.  
  1382. The commands available from the Palette submenu permit various useful 
  1383. palette-related functions.  Since HAM (not HAMPlus) mode pictures don't use
  1384. a palette at all, most of these commands don't work on or affect HAM-only 
  1385. mode pictures.
  1386.  
  1387. Load
  1388.  
  1389. This command lets you load a palette from a picture on disk.  The picture 
  1390. file can be in any of the formats supported by Diamond and need not be in 
  1391. the same graphics mode as the current picture.  As long as the picture file 
  1392. isn't in HAM-only mode (which means there's no palette), Diamond can load the
  1393. palette information from the file into the current palette.  Use the File 
  1394. requester to select the picture whose palette you wish to load.  With 
  1395. register mapped modes, any altered palette colors after the Load process are
  1396. immediately reflected in the picture on screen.  However, in HAMPlus mode, 
  1397. after loading the new palette Diamond adjusts the image so that all original
  1398. colors are retained.
  1399.  
  1400.     CreateH
  1401.     CreateN
  1402.     CreateX
  1403.  
  1404. These next three Screen menu commands are available only in HAM and HAMPlus 
  1405. mode.  They're useful for optimizing the current picture's palette for 
  1406. various purposes.  To observe how these work, carefully note palette contents
  1407. before and after using them.
  1408.  
  1409. CreateH stands for Create HAM.  With HAMPlus, as described above, a 16-color
  1410. palette is employed any of whose colors can be placed on the screen without 
  1411. regard to surrounding colors.  These colors are best used for abrupt 
  1412. horizontal color area changes to avoid the undesirable 'fringing' effect 
  1413. often associated with HAM-mode images.  When you select CreateH, Diamond 
  1414. optimizes the palette to minimize fringing in color borders.
  1415.  
  1416. CreateN stands for Create Normal, and is most useful in converting HAM 
  1417. images to Lo-res format.  Follow this procedure to convert a HAM RGBN 
  1418. picture to Lo-res IFF:
  1419.  
  1420. - Load the HAM picture to convert in HAMPlus mode.
  1421.  
  1422. - Invoke the CreateN command.  After a brief pause, the cursor returns to 
  1423.   its previous state.
  1424.  
  1425. - Save the picture in RGBN format.
  1426.  
  1427. - Reset Diamond to Lo-res.
  1428.  
  1429. - Load the picture.  When the 'Format Mismatch' requester appears, select 
  1430.   'Convert'.  If Dither (Options submenu) is turned on, the conversion 
  1431.   process includes dithering to simulate more colors.
  1432.  
  1433. - After the picture loads, use the Save As ILBM command.
  1434.  
  1435. CreateX uses Halfbrite's extra 32 palette positions, within their 
  1436. limitations, to further optimize a HAM-mode picture's palette for conversion
  1437. to the Halfbrite mode.  (The X stands for eXtra Halfbrite.)  Use the above 
  1438. technique, substituting CreateX for for CreateN and Halfbrite for Lo-res.
  1439.  
  1440.  
  1441. Freeze
  1442.  
  1443. Normally when you merge two pictures (see Merge under Project Menu above), 
  1444. the merged picture's palette information is loaded along with the image and
  1445. replaces the first picture's palette. If you select Freeze before merging an
  1446. image--a check mark appears alongside the menu item when Freeze is active--
  1447. the former palette is retained, loading only the image from disk.
  1448.  
  1449.  
  1450. Color 0
  1451.  
  1452. This item is normally checked, which means that when you use CreateH, 
  1453. CreateN, or CreateX (see above) to recalculate a palette, that the first 
  1454. color in the palette, Color 0, which is used for the border and is also the
  1455. background color used to clear the screen, is changed.  If you don't want 
  1456. this color to change from using one of the Palette Create commands, make 
  1457. sure it is not selected--click on it until the check mark doesn't appear.
  1458.  
  1459.  
  1460. Genlock
  1461.  
  1462. When preparing images for genlock video applications, you should be aware 
  1463. that the genlocked video picture 'shows through' all pixels of a certain 
  1464. color, usually the background color (Color 0).  In recalculating a HAM image,
  1465. which Diamond does when you change the palette, the program may use a Color 0
  1466. pixel for an approximate fit for certain pixels.  If Genlock is selected,
  1467. Diamond will only use a Color 0 pixel if it's an exact fit.
  1468.  
  1469.  
  1470. Display
  1471.  
  1472. This Screen menu item, available only in HAM and HAMPlus modes, performs 
  1473. color separations on the current picture quickly and automatically.  The 
  1474. submenu selections are:
  1475.  
  1476.     Normal
  1477.     Red Only
  1478.     Green Only
  1479.     Blue Only
  1480.  
  1481. Normal displays all colors in the image.  Selecting Red Only, Green Only, or
  1482. Blue Only displays only screen pixels containing a component of the indicated
  1483. color.  If you then select the Print command, the output takes the form of a
  1484. color separation.
  1485.  
  1486.  
  1487. Show Page
  1488.  
  1489. Since Diamond lets you work on pictures larger than the screen can display,
  1490. this command lets you display a reduced version the entire picture on the 
  1491. screen.  If the picture is indeed larger than the screen, selecting this 
  1492. command causes a brief delay, after which the reduced full image is shown in
  1493. the upper left corner of the screen.  Press the space bar to return to the
  1494. previous display.  When working on large pictures, you can use the arrow keys
  1495. to move to different areas of the image.
  1496.  
  1497. -----------------------------------------------------------------------------
  1498.  
  1499. APPENDIX A
  1500.  
  1501.     Diamond Tools, Gadget Bar, and Keyboard Equivelants
  1502.  
  1503.  
  1504. FREEHAND CONNECTED DRAWING TOOL
  1505.  
  1506.     Keyboard = "d" or "D" 
  1507.  
  1508. The Connected Freehand drawing tool will draw a continuous line, without any 
  1509. breaks, while holding the left mouse button down regardless of how fast you 
  1510. draw. The size of the line will be the same size as the currently selected 
  1511. brush.
  1512.  
  1513. FREEHAND DOTTED DRAWING TOOL
  1514.  
  1515.     Keyboard = "s"
  1516.  
  1517. The Dotted Freehand drawing tool will draw a continuous line composed of 
  1518. dots, while holding the left mouse button down regardless of how fast you 
  1519. draw.  The size of the dots will be the same size as the currently selected
  1520. brush.  The spacing of the dots from each other is dependent on the speed at
  1521. which you draw your line.  The faster you draw your line, the farther apart 
  1522. the dots will be spaced.
  1523.  
  1524. CONTINUOUS LINE TOOL
  1525.  
  1526.     Keyboard = "v" or "V"
  1527.  
  1528. The Continuous Line tool will draw a continuous straight line with no breaks.
  1529. Move the mouse to the point you want the line to start.  Hold down the left 
  1530. right mouse button, and move the mouse to the position you want the line to 
  1531. end.  Releasing the mouse button will draw the straight line.
  1532.  
  1533. CURVED LINE (ARC) TOOL
  1534.  
  1535.     Keyboard = "q" or "Q"
  1536.  
  1537. The Curved Line tool will draw a calculated arc between any two desired 
  1538. points on the screen.  Move the mouse to the point you want the arc to start,
  1539. hold down the left mouse button and move the mouse to the position on the 
  1540. screen you want for your end point, and release the mouse button.  A straight
  1541. line from point to point will first be drawn like using the Continuous line 
  1542. tool.  After releasing the mouse button, any movement of the mouse will bend 
  1543. the previously drawn line into an arc connecting your two points. Move the 
  1544. mouse around the screen until you achieve the desired curve line, and depress
  1545. the left mouse button.
  1546.  
  1547. CONNECTED LINE TOOL
  1548.  
  1549.     Keyboard = "l" or "L"
  1550.  
  1551. The Connected Line Tool will draw a number of straight lines all connected to
  1552. each other, with the end point of one line becoming the start point of the 
  1553. next line in the series.  This tool allows you to make polygons and other 
  1554. shapes which can be formed from connected line very easily.  Move the mouse 
  1555. to the start point of the first line and click the left mouse button.  As 
  1556. with the Straight Line tool, move the mouse to the point you want the first 
  1557. line to end, and click the left mouse button again.  The first line will end,
  1558. and the second line will begin at the end point of the first.  You can again
  1559. move the mouse to create another line, ending each line and starting another 
  1560. by clicking the left mouse button until all of the desired lines are created.
  1561. "Double" clicking the left mouse button on an end point of your last line, 
  1562. will end the line creations.
  1563.  
  1564. BOX TOOL
  1565.  
  1566.     Keyboard = "r"- unfilled / "R"- filled
  1567.  
  1568. The Box Tool creates square or rectangular shapes either filled shaped or 
  1569. unfilled frames.  Move the mouse to the point you would like a shape to begin
  1570. and hold down the left mouse button.  While holding the left mouse button 
  1571. down, and moving the mouse, you will see a rectangular shape drawn on the 
  1572. screen in the current pen color.  Releasing the mouse button will end the 
  1573. creation of the box shape.  Selecting the filled section of the gadget will 
  1574. create a filled box or rectangle with the current pen color.
  1575.  
  1576. CIRCLE TOOL
  1577.  
  1578.     Keyboard = "c" - unfilled / "C" - filled
  1579.  
  1580. The Circle Tool operates just like the Box Tool, except that it creates 
  1581. circles.  Move the mouse to the area of the screen where you want the center
  1582. of your circle to be.  Moving the mouse with the left mouse button held down,
  1583. will draw a circle on the screen using the current pen color.  Selecting the
  1584. filled section of the gadget will create a filled circle using the current 
  1585. pen color.
  1586.  
  1587. OVAL TOOL
  1588.  
  1589.     Keyboard = "e" - unfilled / "E" filled
  1590.  
  1591. The Oval Tool operates like the Circle Tool, except that it creates ovals or
  1592. elipses.  The main difference in using the Oval Tool from the other tools is
  1593. that the Oval Tool will let you determine the axis of the oval or ellipse.
  1594. Move the mouse to the area that you want the center of your oval to begin 
  1595. and depress and hold down the left mouse button.  A cross-hair will be drawn
  1596. on the screen.  By moving the mouse around the screen, you can then select 
  1597. the exact axis on which you want your oval to be drawn.  When the wanted axis
  1598. is achieved, release the mouse button.  Depress the left mouse mutton a 
  1599. second time to begin drawing your oval or ellipse.  This   portion of the 
  1600. operation is identical to the Circle tool.  Selecting the filled portion of
  1601. the gadget, will create a filled oval or ellipse in the current pen color. 
  1602.  
  1603. SPRAY GUN TOOL
  1604.  
  1605.     Keyboard = "S"
  1606.  
  1607. The Spray Gun tool operates just like a can of spray paint. The Spray Gun 
  1608. tool will spray a random pattern of dots in the selected pen color 
  1609. continuously as long as the left mouse button is held down.  The size of the
  1610. dots is determined by the chosen brush.  There are also three special spray
  1611. gun brushed at the bottom of the brush menu, with degrees of pattern spread.
  1612.  
  1613. FLOOD FILL TOOL
  1614.  
  1615.     Keyboard = "f"
  1616.  
  1617. The Fill Tool will fill and enclosed area or region with the currently 
  1618. selected pen color. Place the cursor inside the area or region you want 
  1619. filled with your color and click the Mouse button.
  1620.  
  1621. ZOOM TOOL
  1622.  
  1623. Keyboard = "m" or "z"
  1624.  
  1625. The Magnify Tool allows you to zoom in on any area of your picture and do 
  1626. fine or detailed work. In the zoom mode the screen will split vertically with
  1627. the normal view on the left and the Magnified view on the right side of the
  1628. screen. While in the zoom mode, you can scroll around the picture using the 
  1629. arrow keys. You can also increase and decrease the level of magnification up
  1630. to 15 times.
  1631.  
  1632. TEXT TOOL
  1633.  
  1634.     Keyboard = "t" and "T"
  1635.  
  1636. The Text Tool allows you to add text to any part of the picture you are 
  1637. working on.  Diamond uses any standard Amiga font, or Extended Color font 
  1638. created by the Calligrapher. Clicking the Text Tool or using the "t" key from
  1639. the keyboard displays an open box the size of the currently selected font.  
  1640. To enter text to you picture simply place the box in the area you want your 
  1641. line of text to begin, and click the mouse.  All other keyboard strokes from
  1642. this point on will enter text on the screen.  While in Text entry mode, you
  1643. can select a different font or change the style or size of your currently 
  1644. selected font, by hitting control <CTRL> t.  This will bring up the Diamond
  1645. font requester.  The unique Diamond font requester will allow you to have as
  1646. many as 100 different fonts in your system.  When the requester is first 
  1647. invoked you should click on the "LIST FONTS" button to load the fonts into 
  1648. Diamond.  Clicking either of the violet boxes will scroll through the fonts
  1649. in your list.  The arrows beside the "SIZE" gadget allow you to scroll 
  1650. through the various sizes of a particular font in your fonts directory.  The
  1651. arrows beside the "ZOOM" gadget will magnify the size of the currently 
  1652. selected font.  Remember though that increasing the size of the font using 
  1653. the zoom function only increases pixel size.
  1654.  
  1655. CLEAR TOOL
  1656.  
  1657.     Keyboard = "K"
  1658.  
  1659. The CLEAR tool will clear the screen to the currently selected Background 
  1660. color. (color 0).
  1661.  
  1662.  
  1663. APPENDIX B
  1664.  
  1665.     Diamond Function Key Equivelants
  1666.  
  1667.  
  1668.     F1    -    Add Fill and Copy
  1669.  
  1670.     F2    -    Add Fill and Grab
  1671.  
  1672.     F3    -    Select Paint Brush
  1673.  
  1674.     F4    -    Select Eraser Brush
  1675.  
  1676.     F5    -    Select Inverse Brush
  1677.  
  1678.     F6    -    Region Lock On/Off
  1679.  
  1680.     F7    -    Cycle Crosshairs:  type 1, type 2, none..
  1681.  
  1682.     F8    -    Brush On/Off
  1683.  
  1684.     F9    -    Title/Drag Bar On/Off
  1685.  
  1686.     F10    -    Tools/Gadgets On/Off
  1687.  
  1688.  
  1689.  
  1690.  
  1691. APPENDIX C
  1692.  
  1693.     Technical Information
  1694.  
  1695. RGB4 IFF 4-Bit RGB Image Data
  1696.  
  1697. Introduction
  1698.  
  1699. FORM RGB4 is used to store compressed 4-bit RGB image data.  It incorporates
  1700. a compression technique (a variation of 'Huffman coding') that is well 
  1701. suited for slowly varying 4-bit data.  It was developed for use in the 
  1702. program Diamond, an RGB4 editor/paint program incorporating the Amiga's HAM
  1703. (Hold And Modify) screen display mode.
  1704.  
  1705.  
  1706. IFF Specifications
  1707.  
  1708. The standard IFF layout for storing an image is to put three FORM RGB4's in 
  1709. a LIST RGB4, with components arranged in the order red, then green, then 
  1710. blue.  Each FORM RGB4 must have a BMHD (bitmap header) chunk, a COMP 
  1711. (compression) chunk, and a BODY chunk associated with it.
  1712.  
  1713. Since the FORMs are stored in a list, the BMHD and COMP chunks can be stored
  1714. in a PROP chunk.  The BMHD chunk should be the same for all three components,
  1715. so its natural place would be in a PROP chunk.  The COMP chunk(s) contain the
  1716. data that the decompression algorithm will use, so it/they should go in the 
  1717. PROP/FORM chunk(s) depending on whether the same decompression algorithm will
  1718. be used to decode all three FORMs.  In any case, the BODY chunks must be 
  1719. preceded by the corresponding BMHD and COMP chunk(s).  The BMHD chunk is 
  1720. identical to the BMHD chunk in FORM ILBMs.
  1721.  
  1722. The compression component (of the 'struct BitMapHeader') should be set to 2.
  1723. The COMP chunk, and the form of the BODY chunk is specific to FORM RGB4.
  1724.  
  1725. Notes:
  1726.  
  1727. 1. If more than one image is to be stored in a file, they should be put in a
  1728.    CAT of LIST RGB4's.
  1729.  
  1730. 2. Every LIST RGB4 should contain three FORM RGB4's.
  1731.  
  1732. 3. The name 'RGB4' should not be used as a LIST type for anything but a 
  1733.    true 3-component RGB4 image.
  1734.  
  1735. Background
  1736.  
  1737. The compression technique transforms each byte into zero or more bits in a 
  1738. way that guarantees that no (transformed) byte will match the high order bits
  1739. of any other (transformed) byte.  For example, if an 'A' is represented as 
  1740. the binary number '101', then no other byte will have the form '101xxx'--so
  1741. when the sequence '101' is obtained, there's no question as to wheter or not
  1742. it is a full character.  The RGB4 BODY chunk is bit-packed transformed data.
  1743. The bit data is packed with the first bit in the high order position of the 
  1744. first byte.  The compression technique works best on 'low entropy' data that
  1745. is, data with a very non-uniform statistical distribution--for instance,
  1746. containing many zeroes.  The values appearing most often are represented with
  1747. the fewest bits.  For that reason, there are two more steps in 
  1748. encoding/decoding an image.  In encoding, each horizontal scan line is first
  1749. transformed into a sequence of differences.
  1750.  
  1751. So the sequence (X1,X2,X3,...) is first changed to (X1,X2-X1,X3- X2,...).
  1752. In decoding, one starts with a zero (at the left edge of the line) and adds
  1753. the succeeding values.  Thus first one obtains 0 + X1 = X1, then 0 + X1 + 
  1754. (X2-X1) = X2 and so on.  The values X1, X2, etc. are 4-bit numbers, and in 
  1755. all additions and subtractions, only the least 4-bits are retained  
  1756. (e.g. 12 + 13 -> 9, 9 - 13 -> 12, etc.).
  1757.  
  1758. This usually results in many 0's, 1's, and 15's--the latter a result of 
  1759. negative 1 being represented as 15.  Then the other step is: in encoding, 
  1760. pair the 4-bit values into 8-bit bytes with the first value in the high 
  1761. order part of the first byte (after calculating the differences); and in 
  1762. decoding, split the decoded bytes into 4-bit numbers before 
  1763. 'un-differencing'.  One might wonder why this last step is necessary--after
  1764. all, if there are many 0's, 1's, and 15's, it produces a lot of 00's, 01's,
  1765. 10's, 0F's, F0's, 11's, 1F's, F1's, and FF's.  And 0's, 1's, and 15's 
  1766. comprise 18.75 per cent of the 4-bit numbers, but the other collection is 
  1767. only about 3.5 per cent of all possible byte values.  But it also produces a
  1768. lot of 0x's, 1x's, Fx's, x0's, x1's, and xF's, where x is not 0, 1, or F.
  1769. These account for another 30.5 per cent of byte values.  Detailed statistical
  1770. calculations show that for un-correlated data, there is no difference in the
  1771. amount of compression that is theoretically possible in the two cases.
  1772.  
  1773. Un-correlated data is data in which there may be an uneven statistical 
  1774. distribution, but that knowing the value of one particular 'character' 
  1775. doesn't make it any easier to predeict the value of some other character.
  1776. The original images are highly correlated, for example.  If a particular 
  1777. pixel is, say, red, then adjacent pixels are likely to be red or close to
  1778. red.  After diffenceing the data, that staement becomes the statement that
  1779. there are a lot of 0's, 1's, and F's in the data.  But one can also make the
  1780. statement that in the original image, pixels that are two pixels away from a
  1781. red pixel are likely to be red as well.  After the differencing, this 
  1782. statement takes the form of '1's are likely to be followed by -1's (F's),
  1783. and that 2's are likely to be followed by -2's or -1's, etc.'.  Since 
  1784. adjacent 4- bit numbers are combined to make bytes, this means that there 
  1785. are also a lot of 1F's, 1E's, 2F's, 2E's, etc.  Testing showed that for 
  1786. normal images, indeed, better compression was obtained with the 8-bit data.
  1787. Typical compression obtained varies, but generally falls in the range 50 to 
  1788. 80 per cent, with 60 per cent being a common figure.
  1789.  
  1790. References and Trademarks
  1791.  
  1792. Any good book on computer data compression will cover Huffman coding in one
  1793. form or another.  It is a form of 'entropy reduction' coding that reproduces
  1794. the original data exactly. Compression/decompression algorithms are outlined 
  1795. in this manual.
  1796.  
  1797. Amiga is trademark of Commodore-Amiga, Inc.
  1798. Diamond, Silver, Turbo Silver, Prism, PrismPlus, and Terrain are all
  1799. registered trademarks of Impulse, Inc.
  1800.  
  1801. Technical support for Diamond and other Impulse products is available
  1802. by calling: 1-800-328-0184  Technical support hours are: Monday-Friday
  1803. 9:00am - 4:30pm (CST).
  1804.  
  1805.     Impulse, Inc.
  1806.     6870 Shingle Creek Parkway, #112
  1807.     Minneapolis, MN  55430
  1808.     (612) 566-0221
  1809.